#include <iostream>
#include <string>
#include <fstream>
#include "mm14/Types.h"

int main(int argc, char **argv)
{
	std::ifstream in;
	in.open(argv[1]);

	std::string str;
	std::getline(in, str, '\0');

	mm14::GameState o = mm14::ReadXML(str);

	std::set<mm14::Player> players = o.players();
	std::set<mm14::Player>::iterator i;
	for( i=players.begin(); i!=players.end(); ++i )
		std::cout << *i;

	std::cout << str;

	in.close();

	return 0;
}
